package com.woshua.aopmodel.utils;

import android.util.Log;

public class SumUtils {
    public static final String Tag = SumUtils.class.getSimpleName();

    public static long begin() {
        return System.currentTimeMillis();
    }

    public static void end(String fun,String className,String thName,long begin) {
        long duration = System.currentTimeMillis() - begin;

        Log.d(Tag, String.format("功能:%s功能%s的 %s方法，执行的耗时%d ms", fun,className,thName,duration));
    }
}
